	<template>
		<view>
			<view class="text-grey" @click="handlePrivacy">请输入绑定码</view>
			<button @click="initBlue">初始化蓝牙</button>
		</view>
	</template>

	<script>
		export default {
			data() {
				return {

				};
			},
			created() {
				//   this.getCode()
			},
			methods: {
				// 测试按钮
				handlePrivacy() {
					console.log("111")
				},
				initBlue() {
					uni.openBluetoothAdapter({})
					console.log("openBluetoothAdapter")
					debugger
					uni.openBluetoothAdapter({
						success(res) {
							// 状态正常  
							console.log("success", res)
						},
						fail(res) {},
						complete(res) {
							console.log("初始化蓝牙模块-openBluetoothAdapter", res)
						},
					})
				}
			}
		}
	</script>